/** <a href="http://www.cpupk.com/decompiler">Eclipse Class Decompiler</a> plugin, Copyright (c) 2017 Chen Chao. **/
package com.minierp.taglib;

import com.minierp.helper.PageHelper;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

public class ClearHtml extends TagSupport {
	private static final long serialVersionUID = 1L;
	private String source;
	private int subLength = 0;
	private boolean lineFeed = true;
	private String moreString = "";

	public String getSource() {
		return this.source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public int getSubLength() {
		return this.subLength;
	}

	public void setSubLength(int subLength) {
		this.subLength = subLength;
	}

	public int doStartTag() throws JspException {
		try {
			JspWriter e = this.pageContext.getOut();
			String str = PageHelper.parseClearHtmlTag(this.source,
					this.subLength, this.moreString, this.lineFeed);
			e.print(str);
			return 0;
		} catch (Exception arg2) {
			throw new JspException(arg2.toString());
		}
	}

	public int doEndTag() {
		return 6;
	}

	public boolean isLineFeed() {
		return this.lineFeed;
	}

	public void setLineFeed(boolean lineFeed) {
		this.lineFeed = lineFeed;
	}

	public String getMoreString() {
		return this.moreString;
	}

	public void setMoreString(String moreString) {
		this.moreString = moreString;
	}
}